//
//  BC_Browser.m
//  CocOth
//
//  Created by BrunoCausse on 29/11/10.
//  Copyright 2010-2013 poulailler cie. All rights reserved.
//

#import "BC_Browser.h"
#import	"BC_GameTreeController.h"



@implementation BC_Browser

/*
 surchage keyDown pour suivre le chemin de la PV
 rightArrowsKey sinon comportement standart
 */
- (void)keyDown:(NSEvent *)theEvent
{	
	if([theEvent keyCode] == 124) {
		[BC_delegate  browserForward:self];
	} else {
		[super keyDown:theEvent];
	}

}

/*
 accepte le 1er clic:
 becomeFirstResponder
 + 
 mouseDown
*/
- (BOOL)acceptsFirstMouse:(NSEvent *)theEvent
{
	return YES;
}


@end
